<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------

namespace app\user_center\validate\member;

use think\Validate;

/**
 * 用户搜索 验证器
 * @package app\admin\validate
 * @author jason wang <120907037@qq.com>
 */
class UserSearch extends Validate
{
    protected $rule = [
        'user_id'       	=>  'number|require', 	 //user_id 数字/必填/大于0
		'user_name'			=>  'require',//设备码
    ];

    /* protected $message  =   [
        'user_id' 			=> 'user_id格式错误',
		'user_name'    		=> 'user_name格式错误',
    ]; */

    //验证场景
    protected $scene = [
							'get_user_list_search' =>  [//用户搜索列表
								//'user_id',
								'user_name',
							],
               			];
}
